package com.ssms.dao;

import com.ssms.model.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubjectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Subject record);

    int insertSelective(Subject record);

    Subject selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Subject record);

    int updateByPrimaryKey(Subject record);

    List<Subject> selectAll();

    Subject selectByName(String subjectName);

    Subject selectByNo(String subjectNo);

    List<Subject> selectPage(@Param("start") int start, @Param("size") int size, @Param("searchValue") String searchValue);

    int selectPageCount(@Param("searchValue") String searchValue);

    List<Subject> selectByAcademyId(Integer academyId);

}